#include <stdio.h>
#include <string.h>
#include <stdlib.h>

struct stu
{
	char name[5];
	char sex;
	int age;
}stu1;
void inputstr()
{
	printf("请输入学生，姓名，性别，年龄>");
	scanf("%s %c %d", stu1.name, &stu1.sex, &stu1.age);
}

void printstr()
{
	printf("name:%s,sex:%c,age:%d\n", stu1.name, stu1.sex, stu1.age);
}

int main(int argc, const char *argv[])
{
	inputstr();
	printstr();

	return 0;
}
